package com.bosch.in.rtp1.ept.action.form;

import java.util.List;

import org.apache.struts.action.ActionForm;

import com.bosch.in.rtp1.ept.constant.CommonConstants;
import com.bosch.in.rtp1.ept.model.dto.SelectingInt;
import com.bosch.in.rtp1.ept.model.dto.SelectingString;
import com.bosch.in.rtp1.ept.util.FormUtility;
/**
 * Class is used to store parameters which are search conditions to display finished recipe diagrams
 * @author TPR1HC
 *
 */
public class FinishedRecipeCriteriaForm extends ActionForm{

	private static final long serialVersionUID = 1L;
	private String partId;
	private String equipId;
	private String customerName;
	
	private List<SelectingString> locations;
	private List<SelectingString> stages;
	private List<SelectingString> eqpTypes;
	private List<SelectingInt> years;
	
	private String selectedLocation;
	private String selectedStage;
	private String selectedEqpType;
	private int selectedYear;

	public FinishedRecipeCriteriaForm()
	{
		this.selectedYear = CommonConstants.CURRENT_YEAR;
	}
	
	public String getSelectedLocation() {
		return selectedLocation;
	}

	public void setSelectedLocation(String SelectedLocation) {
		this.selectedLocation = SelectedLocation;
	}

	public void setLocations(List<SelectingString> locationList) {
		this.locations = locationList;
	}

	public List<SelectingString> getLocations() {
		return locations;
	}

	public String getPartId() {
		return partId;
	}

	public void setPartId(String partId) {
		this.partId = partId;
	}

	public String getEquipId() {
		return equipId;
	}

	public void setEquipId(String equipId) {
		this.equipId = equipId;
	}

	public void setStages(List<SelectingString> stages) {
		this.stages = stages;
	}

	public List<SelectingString> getStages() {
		return stages;
	}

	public void setEqpTypes(List<SelectingString> eqpTypes) {
		this.eqpTypes = eqpTypes;
	}

	public List<SelectingString> getEqpTypes() {
		return eqpTypes;
	}

	public void setSelectedStage(String selectedStage) {
		this.selectedStage = selectedStage;
	}

	public String getSelectedStage() {
		return selectedStage;
	}

	public void setSelectedEqpType(String selectedEqpType) {
		this.selectedEqpType = selectedEqpType;
	}

	public String getSelectedEqpType() {
		return selectedEqpType;
	}

	public void setSelectedYear(int selectedYear) {
		this.selectedYear = selectedYear;
	}

	public int getSelectedYear() {
		return selectedYear;
	}

	public void setYears(List<SelectingInt> years) {
		this.years = years;
	}

	public List<SelectingInt> getYears() {
		if (this.years == null)
		{
			this.years = FormUtility.buildListYears();
		}
		return years;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getCustomerName() {
		return customerName;
	}
	
}
